<%@ page import="java.util.List" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %>
<%@ page import="com.timeDeal.bean.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/9/4 0004
  Time: 下午 3:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../inc/top.jsp"%>
<%
    PageList pagelist =(PageList) request.getAttribute("pageList") ;
    String leixing = (String) request.getAttribute("leixing") ;
    String login = loginuser==null?"1":"0" ;
%>
<div id="zhu_top" class="zhu_top">
    <h4><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间巨轮推动下的现代社会不容我们有一夕喘息的机会，快节奏的生活方式逼迫我们为了谋生而不得不去做一些繁杂的事情。
然而，人类并不是机器，精力有限，思维有限，时间有限，我们需要别人来帮助我们做这些我们不愿意、没时间、或者不擅长的事情。
在这个平台，这些问题可以得到解决。同样的，也有一大部分社会人士相比金钱，时间更多，他们可以通过出售时间，拿到金钱；
出售技能，提升社会价值。这里，需求与市场并存，欢迎你的加入！
    </p></h4>
</div>
<div class="zhu_yema">
   <div><button id="firstpage"  class="firstpage btn">首页</button></div>
    <div class="middlepage">
        <%
            for(int i=0;i<pagelist.getTotalpage();i++){
        %>
        <button  value="<%=i+1%>" class="middlepage_btn btn"  ><%=i+1%></button>
        <%}%>
    </div>
    <div><button id="lastpage"  class="lastpage btn">尾页</button></div>
</div>
<div class="zhu_sousuo">
    <button id="redu" name="redu" value="热度" class="zhu_sousuo_btn btn">热度</button>
    <button id="jingbiaozhong" name="jingbiao" value="允许竞标" class="zhu_sousuo_btn btn" >允许竞标</button>
    <button id="buyunxu" name="buyunxu" value="不允许竞标" class="zhu_sousuo_btn btn" >不允许竞标</button>
    <button id="fabushijian" name="fabushijian" value="发布时间"  class="zhu_sousuo_btn btn">发布时间</button>
    <button id="choulaojine"  name="choulaojine" value="酬劳金额" class="zhu_sousuo_btn btn">酬劳金额</button>
</div>
<div class="row">
    <div class="col-xs-12">
        <table class="table">
                 <tr  style="margin-right: 200px">
                        <th width="50%">名称</th>
                        <th  >老板</th>
                        <th >看官</th>
                        <th  >时间</th>
                   </tr>
            <%
                if(StringUtils.equals(leixing,"xuqiufabu")){
            if(pagelist!=null){
            List<Object> list = pagelist.getList();
            for(int i=0;i<list.size();i++){
            XuqiufabuBean xuqiufabuBean=(XuqiufabuBean)list.get(i);
            if(i>1){%>
            <tr  style="margin-right: 200px">
                <td><a href="<%=ctxpath%>/user/pingluna.jsp?flag=1&id=<%=xuqiufabuBean.getXuqiufabuid()%>" >
                    <%=xuqiufabuBean.getXuqiumingcheng()%></a></td>
                <td><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=xuqiufabuBean.getJiafangid()%>" >
                    <%=xuqiufabuBean.getTijiaorenXingming()%></a></td>
                <td> <%=xuqiufabuBean.getRedu()%></td>
                <td>  <%=xuqiufabuBean.getFabushijian()%></td>
            </tr>
                <%}else{%>
            <tr  >
                <td style="width:70%"><a href="<%=ctxpath%>/user/pingluna.jsp?flag=1&id=<%=xuqiufabuBean.getXuqiufabuid()%>" style="color:#E53333">
                    <%=xuqiufabuBean.getXuqiumingcheng()%></a></td>
                <td style="width:10%"><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=xuqiufabuBean.getJiafangid()%>">
                    <%=xuqiufabuBean.getTijiaorenXingming()%></a></td>
                <td style="width:10%">
                    <%=xuqiufabuBean.getRedu()%></td>
                <td style="width:10%">
                    <%=xuqiufabuBean.getFabushijian()%></td>
            </tr>
                <%}}}}else {
                    if(pagelist!=null){
                        List<Object> list = pagelist.getList();
                        for(int i=0;i<list.size();i++){
                            ShijianchushouBean shijianchushouBean=(ShijianchushouBean) list.get(i);
                            if(i>1){%>
            <tr  style="margin-right: 200px">
                <td><a href="<%=ctxpath%>/user/pingluna.jsp?leixing=shijianchushou&id=<%=shijianchushouBean.getShijianchushouid()%>" >
                    <%=shijianchushouBean.getShijianchushoumingcheng()%></a></td>
                <td><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=shijianchushouBean.getJiafangid()%>" >
                    <%=shijianchushouBean.getTijiaorenXingming()%></a></td>
                <td> <%=shijianchushouBean.getRedu()%></td>
                <td>  <%=shijianchushouBean.getFabushijian()%></td>
            </tr>
            <%}else{%>
            <tr  >
                <td style="width:70%"><a href="<%=ctxpath%>/user/pingluna.jsp?leixing=shijianchushou&id=<%=shijianchushouBean.getShijianchushouid()%>" style="color:#E53333">
                    <%=shijianchushouBean.getShijianchushoumingcheng()%></a></td>
                <td style="width:10%"><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=shijianchushouBean.getJiafangid()%>">
                    <%=shijianchushouBean.getTijiaorenXingming()%></a></td>
                <td style="width:10%">
                    <%=shijianchushouBean.getRedu()%></td>
                <td style="width:10%">
                    <%=shijianchushouBean.getFabushijian()%></td>
            </tr>

            <%}}}}%>
        </table>
    </div>
</div>
<input id="currentpage" name="currentpage" value="${pageList.currentpage}"></input>
<input id="leixing" name="leixing" value="${leixing}"></input>
<input id="tiaojian" name="tiaojian" value="${tiaojian}"></input>
<input id="max" name="max" value="${pageList.totalpage}"></input>
<input id="login" name="login" value="<%=login%>"></input>
<%@ include file="../inc/bottom.jsp"%>



